package com.xuanrui.commons.enums;

/**
 * @author afeng
 * @version 1.0
 * @date 2023/3/6 下午5:22
 */
public enum OutRebatePayStatusEnum {
    WAIT_PAY(1, "未支付"),
    MANUAL_PAY_SUCCESS(2, "人工支付"),
    LINE_PAY_SUCCESS(3, "支付成功"),
    CHECK_FALSE(4,"审批不通过")
    ;

    private int type;
    private String desc;

    OutRebatePayStatusEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getOutRebatePayStatus(int type) {

        for (OutRebatePayStatusEnum var : OutRebatePayStatusEnum.values()) {
            if (type == var.getType())
                return var.getDesc();
        }
        return "未支付";
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
